//diag_log format["Setting up fnc_eh_respawn"];
//fnc_eh_respawn = {
[] spawn {
	removeAllWeapons player;

	/* Give a standard makarov with 3 magazines */
	for "_x" from 1 to 3 do { player addMagazine "8Rnd_9x18_Makarov"; };
	player addWeapon "Makarov";

	/* Set player as alive */
	player setVariable ["status", 0, true];

	if (matchInProgress) then {
		[] call ace_fnc_startSpectator;
		player setVariable ["ace_sys_spectator_exclude", true, true];

		waitUntil { !matchInProgress };

		ace_sys_spectator_exit_spectator = true;
		player setVariable ["ace_sys_spectator_exclude", false, true];
	};
};
//};